package com.brotherly.util.downloader;

public class DownloadInfo
{
    private int threadId;// 下载器id
    private int startPos;// 开始点
    private int endPos;// 结束点
    private int compeleteSize;// 完成度
    private String url;// 下载器网络标识
    private String filename;
    private int complete; // 是否完成

    public DownloadInfo(int threadId, int startPos, int endPos, int compeleteSize, String url, String filename, int complete)
    {
        super();
        this.threadId = threadId;
        this.startPos = startPos;
        this.endPos = endPos;
        this.compeleteSize = compeleteSize;
        this.url = url;
        this.filename = filename;
        this.complete = complete;
    }

    public int getThreadId()
    {
        return threadId;
    }

    public void setThreadId(int threadId)
    {
        this.threadId = threadId;
    }

    public int getStartPos()
    {
        return startPos;
    }

    public void setStartPos(int startPos)
    {
        this.startPos = startPos;
    }

    public int getEndPos()
    {
        return endPos;
    }

    public void setEndPos(int endPos)
    {
        this.endPos = endPos;
    }

    public int getCompeleteSize()
    {
        return compeleteSize;
    }

    public void setCompeleteSize(int compeleteSize)
    {
        this.compeleteSize = compeleteSize;
    }

    public String getUrl()
    {
        return url;
    }

    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getFileName()
    {
        return this.filename;
    }

    public int getComplete()
    {
        return complete;
    }

    public void setComplete(int complete)
    {
        this.complete = complete;
    }

    @Override
    public String toString()
    {
        return "DownloadInfo [threadId=" + threadId + ", startPos=" + startPos + ", endPos=" + endPos + ", compeleteSize="
                + compeleteSize + ", filename=" + filename + "]";
    }

}
